package com.wqr.it.ecwdr.dao;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;

import com.wqr.it.ecwdr.vo.PageVO;
import com.wqr.it.ecwdr.vo.ProductItemVO;
import com.wqr.it.ecwdr.vo.ProductSalesInfoVO;
import com.wqr.it.ecwdr.vo.SallerVO;
import com.wqr.it.ecwdr.vo.StockVO;

/**
 * @author adinos
 *
 */
@Mapper
public interface IProductDao {
	
	public void updateProductStock (ProductSalesInfoVO productSalesInfoVO);

	public ProductItemVO getProductStock(ProductItemVO productSalesInfoVO);
	
	public List<ProductSalesInfoVO> getProductStockList(ProductSalesInfoVO productSalesInfoVO, PageVO pageVO);

	public ProductSalesInfoVO getProductSaller(ProductSalesInfoVO productSalesInfoVO);

	public void insertProductSaller(ProductSalesInfoVO productSalesInfoVO);

	public void generateProductStock(long token);
	
	public List<ProductItemVO> getFavSallerProductList(long token, PageVO pageVO);

	public List<ProductSalesInfoVO> getSallerStock(SallerVO sallerVO, PageVO pageVO);

	public List<ProductSalesInfoVO> getProductItemStock(ProductItemVO productItemVO, PageVO pageVO);

	public ProductSalesInfoVO getShortProductStock(ProductSalesInfoVO productSalesInfoVO);

	public long getInitProductStockCount(long token);

	public void generateFavProductStock(long token);

	public void generateFavSallerStock(long token);

	public void insertProductStock(ProductItemVO productItemVO);

	public void updateProductStockList(ProductSalesInfoVO vo);

	public List<StockVO> getStockList(StockVO stockVO, PageVO pageVO);
}
